package edu.spec.dengyan.week08.class01.book.unit4.topic02;

/**
 * Author       : Dengyan
 * Date         : 2018/10/11 23:19
 * Description  : “Feeder”类
 */
public class Feeder {
    private String AnimalName;
    private String FoodName;

    public Feeder(String AnimalName, String FoodName) {
        this.AnimalName=AnimalName;
        this.FoodName=FoodName;
    }

    public String getAnimalName() {
        return AnimalName;
    }

    public String getFoodName() {
        return FoodName;
    }

    public void feed(){
        System.out.println("give "+getAnimalName()+" feed "+getFoodName());
    }

}
